<template>
	<div class="dianjichakan">
      <span @click="chakan" v-if="sku == ''" style="cursor: pointer;color: #197cff;">点击查看</span>
      <span>{{sku}}</span>
	</div>
</template>

<script>
	import axios from "axios";
	export default {
		name: 'dianjichakan',
    props:['id'],
		data() {
			return {
        sku:""
			};
		},
		created() {

		},
		mounted() {

		},
		methods: {
      chakan:function(){
        axios.get('/api/plan/order/producer?id='+this.id)
          .then(response => {
              if(response.data.msg.code != 0){
                  this.$message.error(response.data.msg.info);
              }else{
                  this.sku = response.data.data
              }
          })
      }
		}
	};
</script>

<style lang="scss" scoped>
  .dianjichakan{

  }
</style>
